//
//  myLayout.h
//  homeWorkForNews
//
//  Created by 苗钧豪 on 16/8/3.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@protocol JHLayoutDelegate <NSObject>
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout height:(CGFloat)height heightForItemIndexPath:(NSIndexPath *)indexPath;
@end
@interface myLayout : UICollectionViewLayout
@property(nonatomic,strong)NSMutableArray *array;
@property(nonatomic,strong)id<JHLayoutDelegate> delegate;
@property(nonatomic,assign)NSInteger contentWidth;
@end
NS_ASSUME_NONNULL_END